<?php

class User extends AdminAppModel {
	
	/**
	 * Display field
	 * @var string
	 */
	public $displayField = 'name';
	
	/**
	 * Validation rules
	 * @var array
	 */
	public $validate = array (
		'name' => array (
			'notempty' => array (
				'rule' => array('notempty')
			)
		),
		'email' => array (
			'rule' => array('notempty', 'email')
		)
	);
	
}